package com.hltx.controller.app.order;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

import com.hltx.controller.base.BaseController;

/**
 * APP订单controller
 * 
 * @author 
 *
 */
@Controller
@RequestMapping(value = "/app/")
public class AppOrderController extends BaseController{

	/**
	 * 打开订单
	 */
	@RequestMapping(value = { "/wap/order", "/user/wap/order" })
	public String order(String state, String type) {
		if(state != null && type != null){
			return "redirect:/order?state="+state+"&type="+type;
		}else{
			return "redirect:/order";
		}
		
	}
	
	/**
	 * 打开订单支付成功页
	 */
	@RequestMapping(value = { "/wap/ordersuccess", "/user/wap/ordersuccess" })
	public String order(String code) {
			
		return "redirect:/pay/payOneResult?code="+code;

	}
	
	
}
